<!-- <page-header></page-header> -->
<app-table-page #st [tmp]="tmp" [config]="config" (operateClick)="operate($event)" (_selectChange)="_console($event)">
  <ng-template #tmp>
    <button nz-button nzType="primary" (click)="isVisible=true">导入申报设备</button>
<!--    <button nz-button (click)="export()"><i class="anticon anticon-download"></i>导出考核报表</button>-->
<!--    <button nz-button down-file http-method="POST" [http-data]="{assessUploadPath: selectedData?.assessUploadPath}" http-url="{{api.accessReport.exportExcel.url}}" (error)="msg.error('导出失败')" (success)="msg.success('导出成功')"><i class="anticon anticon-download"></i>导出考核报表</button>-->
  </ng-template>
</app-table-page>
<nz-modal [(nzVisible)]="isVisible" nzTitle="导入申报设备" (nzOnCancel)="isVisible = false" (nzOnOk)="handleOk()" [nzOkLoading]="isLoading">
  <div>
    <button nz-button (click)="input.click()">
      <i class="anticon anticon-upload"></i>
      选择文件
    </button>
    <span class="ml-lg">{{selectedFile?.name}}</span>
  </div>
  <nz-alert class="mt-md" nzType="info" nzMessage="温馨提示：请选择excel文件,点击确定后上传"></nz-alert>
  <a [href]="downLoadUrl" class="d-inline-block pt-md">模板下载</a>
  <input #input type="file" accept="application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" style="display: none" (change)="selectFile($event.target.files)">
</nz-modal>
